<%@ page contentType="text/html;charset=UTF-8" %>
<%@page import="org.apache.struts2.components.Include"%>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <%@ include file="/commons/meta.jsp" %>

       	<link rel="stylesheet" type="text/css" href="<c:url value="/widgets/jquery-easyui/themes/default/easyui.css"/>">
	<link rel="stylesheet" type="text/css" href="<c:url value="/widgets/jquery-easyui/themes/icon.css"/>">
	<script type="text/javascript" src="<c:url value="/widgets/jquery-easyui/easyloader.js"/>"></script>

	<script type="text/javascript">

	using('tree', function(){

	});
	function getSelected(){
		var node = $('#tt1').tree('getSelected');
		if(node==null) {
			alert('请选择一个分类！');
			return;
		}
		//alert(node.text);
		//alert(node.id);
		window.parent.useTreeNode(node.text,node.id);
	}

	</script>
  </head>

  <body>
   <ul id="tt1" class="easyui-tree" animate="false">
   	${tree }
   </ul>
   <a href="javascript:getSelected();" class="easyui-linkbutton" iconCls="icon-save">选择</a>
  </body>
</html>
